/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package hotgammon.domain.game.dice;

/**
 *
 * @author truck
 */
public class AlphaDiceStrategy implements DiceStrategy{

    private int[] dice;
    private int counter;
    
    public AlphaDiceStrategy(){
        counter = 0;
        dice = new int[]{1,2,1,2,3,4,3,4,5,6,5,6};
    }
    
    public int[] throwDice() {
        int[] tmp = new int[2];
        tmp[0] = dice[counter];
        counter = (counter+1)%dice.length;
        tmp[1] = dice[counter];
        counter = (counter+1)%dice.length;
        return tmp;
    }
}
